package com.zzh.study.rest;

import com.zzh.study.model.po.WebFluxDemoPO;
import com.zzh.study.service.WebFluxDemoService;
import com.zzh.study.utils.GeneralResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

import javax.annotation.Resource;

/**
 * @PackageName:com.zzh.study.rest
 * @ClassName:WebFluxRest
 * @Description:
 * @author:zhangzhanheng
 * @date: 2020/12/18 18:42
 */
@RestController
@RequestMapping("/webflux")
public class WebFluxRest {

    @Resource
    WebFluxDemoService webFluxDemoService;

//    @PostMapping("/add")
//    public Mono<WebFluxDemoPO> add(@RequestBody WebFluxDemoPO webFluxDemoPO ) {
//        return webFluxDemoService.save(webFluxDemoPO);
//    }
}
